package com.syq.mapper;

import com.syq.pojo.SysUsers;
import com.syq.pojo.SysUsersExample;
import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

public interface SysUsersMapper {
    /**
     * 根据用户名查询用户对象
     * @param userName
     * @return
     */
    public SysUsers findUserByName(@Param("userName") String userName);

    /**
     * 查询用户角色
     * @param uid
     * @return
     */
    public Set<String> findRoles(@Param("uid") int uid);

    /**
     * 查询用户权限
     * @param uid
     * @return
     */
    public Set<String> findPerms(@Param("uid") int uid);
}